<!--_meta 作为公共模版分离出去-->
{include file="common/_meta" /}
<!--/meta 作为公共模版分离出去-->

<title>河北灵鹿科技有限公司</title>
<meta name="keywords" content="H-ui.admin v3.0,H-ui网站后台模版,后台模版下载,后台管理系统模版,HTML后台模版下载">
<meta name="description" content="H-ui.admin v3.0，是一款由国人开发的轻量级扁平化网站后台模板，完全免费开源的网站后台管理系统模版，适合中小型CMS后台系统。">
</head>
<body>
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页
		<span class="c-gray en">&gt;</span>
		商品管理
		<span class="c-gray en">&gt;</span>
		商品列表
		<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
	</nav>
	<div class="Hui-article">
		
		
		
		<article class="cl pd-20">
			<div class="text-c" style="margin-top: 25px;">
				<form action="" method="get">
				<input type="text" class="input-text" style="width:250px" value="{$key}" placeholder="输入商品名称" id="" name="key">
				<button class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i> 搜商品</button>
				</form>
			</div>
			<div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">
				
				</span>
				<span class="r">共有数据：<strong>{$count1}</strong> 条</span>
			</div>
			<div class="mt-20">
				<table class="table table-border table-bordered table-bg table-hover table-sort">
					<thead>
						<tr class="text-c">
							<th width="20">ID</th>
							<th width="60">产品分类</th>
							<th width="150">名称</th>
							<th width="70">编号</th>
							<th width="60">首页主图</th>
							<th width="50">产品分类</th>
							<th width="50">状态</th>
							<th width="50">选中</th>
							
						</tr>
					</thead>
					<tbody>
					{volist name="goodsRes" id="vo"}
						<tr class="text-c">
							<td>{$vo.id}</td>
							<td>{$vo.cate_id}</td>
							<td class="text-l">{$vo.goods_name}</td>
							<td>{$vo.goods_code}</td>
							<td>
								{if condition="$vo.goods_img == '' "} 
								暂无缩率图
								{else /} 
								<img src="{$vo.goods_img|obs}" height="50"/>
								{/if}
							</td>
							
							
							<td class="td-status">
								{if condition="$vo.lei == 1"}
								<span class="label label-secondary radius">创业商城</span>
								{else /} 
								<span class="label label-primary radius">消费商城</span>
								{/if}
							</td>
							<td class="td-status">
								{if condition="$vo.isopen == 0"}
								<span class="label label-disabled radius">已下架</span>
								{else /} 
								<span class="label label-success radius">已上架</span>
								{/if}
							</td>
							<td class="">
								
								<button onclick="xuan(this,{$vo.id},'{$vo.goods_name}','{$vo.shop_price}')"  type="button" class="btn btn-warning radius">选中</button>
								
							</td>
							
						</tr>
					{/volist}

					</tbody>
				</table>
				{$goodsRes|raw} 
			</div>
		</article>
	</div>


<!--_footer 作为公共模版分离出去-->
{include file="common/_footer" /}
<!--/_footer /作为公共模版分离出去-->

<!--请在下方写此页面业务相关的脚本-->
<script type="text/javascript" src="__MANAGE__lib/My97DatePicker/4.8/WdatePicker.js"></script>

<script type="text/javascript">

/*商品-添加*/
function article_add(title,url,w,h){
	layer_show(title,url,w,h);
}
/*商品-编辑*/
function article_edit(title,url,id,w,h){
	layer_show(title,url,id,w,h);
}

/*撤回推荐*/
function xuan(obj,id,name,shop_price){
	
	$(window.parent.document).find("#goods_id").val(id)
	$(window.parent.document).find("#goods_name").val(name)
	$(window.parent.document).find("#shop_price").val(shop_price)
	$(window.parent.document).find("#goods_price_zong").val(shop_price)
	
	
	var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
	parent.layer.close(index); //再执行关闭
}

</script>
<!--/请在上方写此页面业务相关的脚本-->
</body>
</html>